import { Transform } from 'class-transformer';
import { IsNumberString, IsOptional, IsString } from 'class-validator';

export class DecodeDto {
  @IsNumberString()
  lon: string;

  @IsNumberString()
  lat: string;

  @IsOptional()
  @Transform(({ value }) => {
    return value?.toString?.() || '1';
  })
  @IsNumberString()
  extensions_poi: string;
}
